现在,如果玩家猜到正确的代码,我们要停止循环来完成游戏。
- 使用另一个 Return Variable 来调用函数 analyze_code。
- 将返回变量命名为 status 并使用参数:guess、code 和 y 。
- 如果 status 为 "true!" ,则使用 if 语句来 Break 循环。
- 在循环内部和 if 语句外部,当每次循环运行时,使用 Add Value 向 y 添加 35 。
To navigate the page using the TAB key, first press ESC to exit the code editor.